package com.armani.controller;

import com.alibaba.fastjson.JSON;
import com.armani.model.OrderDetailModel;
import com.armani.model.Result;
import com.armani.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @ProjectName: armani
 * @Package: com.armani.controller
 * @ClassName: OrderDetailController
 * @Description: 订单详情
 * @Author: lenovo
 * @Date: 2021/11/29 12:14
 * @Version: 1.0
 **/
@Controller
@RequestMapping(value = "order/",produces = "application/json; charset = utf-8")
public class OrderDetailController {
    @Autowired
    private OrderDetailService orderDetailService;

   /* @GetMapping(value = "search.do")
    @ResponseBody
    public String search() throws Exception {
        List<OrderDetailModel> orderDetailModels = orderDetailService.search();
        Result result = new Result();
        result.setCode(0);
        result.setData(orderDetailModels);
        String json = JSON.toJSONString(result);
        return json;
    }*/
}
